<!--
描述：楼房信息-新增组件
开发人：fwb
开发日期：2017年8月22日
-->

<template lang="pug">
    kalix-dialog.user-add(bizKey="examStudent" ref="kalixBizDialog" v-bind:form-model.sync="formModel" v-bind:targetURL="targetURL")
        div.el-form(slot="dialogFormSlot")
            div.s-flex
                el-form-item.s-flex_item(label="条形码" prop="barCode" v-bind:rules="rules.barCode" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.barCode")
            div.s-flex
                el-form-item.s-flex_item(label="考号" prop="examNumber" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.examNumber")
                el-form-item.s-flex_item(label="考生姓名" prop="examName" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.examName")
            div.s-flex
                el-form-item.s-flex_item(label="身份证" prop="identificationCard" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.identificationCard")
                el-form-item.s-flex_item(label="专业" prop="major" v-bind:label-width="labelWidth")
                    kalix-dict-select(v-model="formModel.major"  appName="enrolment" dictType="考生专业" )
            div.s-flex
                el-form-item.s-flex_item(label="毕业院校" prop="university" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.university")
                el-form-item.s-flex_item(label="联系地址" prop="address" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.address")
            div.s-flex
                el-form-item.s-flex_item(label="联系电话" prop="phone" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.phone")
                el-form-item.s-flex_item(label="省份" prop="province" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.province")
</template>

<script type="text/ecmascript-6">
    import FormModel from './examStudentModel.js'
    import {ExamStudentsURL} from '../../config.toml'

    export default {
        name: 'ExamStudentAdd',
        data() {
            return {
                formModel: Object.assign({}, FormModel),
                rules: {
                    barCode:[{required: true, message: '条形码不能为空', trigger: 'blur'}]
                },
                targetURL: ExamStudentsURL,
                labelWidth: '120px'
            }
        },
        components: {},
        created() {
        },
        methods: {}
    }
</script>

<style scoped lang="stylus">
    .el-form
        padding 30px 70px 30px 20px
</style>
